home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / lang / shwtxt15 / showtext.ins < prev    next >
Encoding:
Text File  |  1995-02-21  |  5.2 KB  |  172 lines

  1. SHOWTEXT PROGRAMMING LANGUAGE  (version 1.5)
  2. INSTRUCTION SET SUMMARY
  3. (syntax only - additional documentation is in SHOWTEXT.DOC)
  4.  
  5. ALIAS %varname=var
  6. ALIAS %varname=var,%varname=var
  7. ARROW
  8. ARROW OFF
  9. ATTR color_attribute_byte_value
  10. BEEP
  11. BCOPY buf TO buf (row1,col1,row2,col2)                         
  12. BCOPY buf TO buf (row1,col1,row2,col2) (row,col)        
  13. BFILL buf (row1,col1,row2,col2) val val
  14. BFILL buf (row1,col1,row2,col2) ASCII val
  15. BFILL buf (row1,col1,row2,col2) ATTR val
  16. BSWAP buf TO buf (row1,col1,row2,col2)                         
  17. BSWAP buf TO buf (row1,col1,row2,col2) (row,col)        
  18. BXOR buf (row1,col1,row2,col2) val
  19. C@ row,col
  20. CENTER MOUSE key
  21. CHK
  22. CLS
  23. CLS foreground,background
  24. COLOR foreground
  25. COLOR foreground,background
  26. COPY (source,destination) fade
  27. CSR LIM
  28. CSR LIM (row1,col1,row2,col2)
  29. CSR OFF
  30. CSR ON
  31. CSR ON num TO num              {num is the scan line 0 to 7}
  32. DIRTOP
  33. DIRBOT
  34. DIRPRV
  35. DIRNXT
  36. DIRCMP or DIRCMP "filename" or DIRCMP $(bfr,row,col1,col2)   {use ? as wildcard}
  37. DIRCPY buffer,fade
  38. DIRFND "filename" or DIRFND $(bfr,row,col1,col2)             {NO wildcards}
  39. DIRPRT buffer,row,column,attribute
  40. DO ... LOOP
  41. ERRORLEVEL dos_errorlevel_value
  42. EXIT
  43. EXITC
  44. EXITDO
  45. EXITFOR
  46. EXITWHILE
  47. FOR var = val to val STEP val     {used with NEXT instruction}
  48. GOTO label
  49. GOSUB label                       {used with RET instruction}
  50. GOLOOP
  51. GONEXT
  52. GOWEND
  53. IF ... THEN ... ELSEIF ... ELSE ... ENDIF
  54. IF BDIFF buf TO buf (row1,col1,row2,col2) (row,col) label
  55. IF BSAME buf TO buf (row1,col1,row2,col2) (row,col) label
  56. IF CLK (row1,col1,row2,col2) label
  57. IF NOT CLK (row1,col1,row2,col2) label
  58. IF CSR (row1,col1,row2,col2) label
  59. IF NOT CSR (row1,col1,row2,col2) label
  60. IF KEY key label
  61. IF NOT KEY key label
  62. IF Tn ticks label           {n=0 to 15}
  63. IF NOT Tn ticks label       {n=0 to 15}
  64. IF val label
  65. IF NOT val label
  66. INPUT TEXT (row,startcolumn,endcolumn,attribute)
  67. INPUT TEXT CAPS (row,startcolumn,endcolumn,attribute)
  68. INPUT var  (row,startcolumn,endcolumn,attribute)
  69. LEFT MOUSE key
  70. MEM PEEK offset var
  71. NEXT
  72. NEXT var
  73. NOCHK
  74. ON INTKEYn key GOTO label             {n=0 to 7}
  75. ON INTKEYn key GOSUB label            {n=0 to 7}
  76. ON var GOTO label1,label2,label3,label4
  77. ON var GOSUB label1,label2,label3,label4
  78. P+
  79. P-
  80. P@ row,col
  81. PCSR LIM
  82. PCSR LIM (row1,col1,row2,col2)
  83. PEEK buf (row,col) var var   
  84. PEEK buf (row,col) ASCII var 
  85. PEEK buf (row,col) ATTR var  
  86. PLAY "play text..."
  87. POKE buf (row,col) val val   
  88. POKE buf (row,col) ASCII val 
  89. POKE buf (row,col) ATTR val  
  90. POP  var         {e.g. POP 0}
  91. POP  var-var     {e.g. POP 0-255 or POP 255-0}
  92. PORT IN port var
  93. PRINT "text........."
  94. PRINT "text.........";
  95. PRINT CHAR(val)
  96. PRINT CHAR(val);
  97. PRINT var,format                {characters in format= 1 to 9 L Z O Q }
  98. PRINT var,format;               {characters in format= 1 to 9 L Z O Q }
  99. PUSH var         {e.g. PUSH 0 or PUSH V0} letter V is optional
  100. PUSH var-var     {e.g. PUSH 0-255 or PUSH 255-0}
  101. RESTART
  102. RESTORE fade
  103. RET                    {use with GOSUB}
  104. RETURN                 {same as RET}
  105. RIGHT MOUSE key
  106. RST K
  107. RST S            {one value at a time}
  108. RST Tn           {n=0 to 15}
  109. RST TS           {resets all timerS}
  110. SAVE
  111. SCREENSAVER minutes                  {use minutes=0 to disable}
  112. SCROLL DOWN (row1,col1,row2,col2)
  113. SCROLL UP (row1,col1,row2,col2)
  114. SELECT CASE ... CASE ... CASE ELSE ... END SELECT
  115. system variables [info]                   {where info is Tn or ...}
  116.                  [RND num TO num]
  117. TTYPE "text......"
  118. TTYPE "text......";
  119. var=val
  120. var++
  121. var--
  122. var=val+val
  123. var=val-val
  124. var=val*val
  125. var=val/val
  126. var=val~val     {same as var=val MOD val}
  127. var=val^val     {exponentiation}
  128. var=val&val     {same as var=val AND val}
  129. var=val@val     {same as var=val OR val}────┬──alternate OR symbols
  130. var=val|val     {same as var=val OR val}────┘
  131. var=val#val     {same as var=val XOR val}
  132. var=`val        {same as var=NOT val}
  133. VIRTUAL val
  134. WAIT ticks
  135. WAITKEY
  136. WAITKEY ticks
  137. WAITKEY ticks,label
  138. WHILE ... WEND
  139. WINDOW (row1,col1,row2,col2) windowtype           {use current colors}
  140. WINDOW (row1,col1,row2,col2) windowtype,attribute
  141. XFLOAD "filename.txt"    now uses STF file type
  142. XFSAVE "filename.txt"    now uses STF file type
  143. $(buf,row,startcolumn,endcolumn) {used with COPY,PRINT,TTYPE,PLAY,XFLOAD,XFSAVE}
  144. $DOS command
  145. $LIB ADD filespec1,filespec2,...,...,filespecN
  146. $LIB DIR "directoryname"
  147.  
  148. !  can be used in place of the word PRINT    { e.g.  !"hello world"    }
  149. !! can be used in place of the word TTYPE    { e.g. !!"bon jour monde" }
  150. ?  can be used in place of the word INPUT    { e.g. ?V1(1,15,25,31)    }
  151.  
  152. Notes:
  153.  
  154. "key" is a specified key on the keyboard. note SHIFT CTRL ALT can be used
  155.       but not simultaneously.
  156.  
  157. "label" is a program label. the (:) is not specified here.
  158.  
  159. "num" is a number
  160.  
  161. "val"  is either a number (0 to 255)
  162.        or a variable (V0 to V255)--------------> V(0) to V(255)
  163.        or an indexed variable (VV0 to VV255)---> V(V(0)) to V(V(255))
  164.  
  165. "var"  is either a variable  (V0 to V255) -----> V(0) to V(255)
  166.        or an indexed variable (VV0 to VV255)---> V(V(0)) to V(V(255))
  167.  
  168. Other required data fields can usually be numbers, variables
  169. or indexed variables.
  170. Variables can be of the following types:  V7   %TEMP   VV4   V%MISC 
  171.  
  172.